home *** CD-ROM | disk | FTP | other *** search
- How to compile MiNT 0.96 with PureC
- -----------------------------------
-
- Julian F. Reschke, 19. Oktober 1992
- email: julian@math.uni-muenster.de
-
-
- (1) Special files
-
- First of all, you need a special osbind.h. This is because Pure's own
- version differs in some small details from the GCC header files. You
- can't use Pure's tos.h, either, because in its latest versions it already
- defines some of MiNT's data structures. You can either leave osbind.h in
- the MiNT source directory, or copy it to your PureC include folder. If you
- are using the MiNT library, all should work fine without this file.
-
- This is all what's needed. You can either use the command line versions
- of PureC, or you can use the PureC shell. I am compiling MiNT with GNU
- make (latest version at atari.archive.umich.edu should work fine) and a
- self-made 'cc' command, that I've specially written for the PureC command
- line versions (see makefile.pcc). This tool is still being tested, and
- I've not yet decided how to distribute it. If you are interested, write to
- me.
-
- If you're going to use the PureC shell, you'll have to 'manually'
- translate the .spp files to the PASM syntax using asmtrans.ttp. The
- syntax is
-
- asmtrans -purec -o outfile.s outfile.spp
-
- genmagic.ttp is needed to create the file magic.i, which in turn is
- included by the .spp files.
-
-
- (2) Things to do
-
- So far, I've made no attempt to translate asmtrans with PureC. Try it
- yourself (you'll need alloca; might work with the MiNT library version
- for PureC) or compile them with gcc.
-
-
- (3) Caveats
-
- This is a preliminary 'port'. It seems to work fine on my machine, but
- this guarantees nothing:
-
- There's still a conflict in the way PureC saves registers with what MiNT
- file system drivers or device drivers expect. That's why minix.xfs will
- bomb. There are two solutions: change it in the kernel, or change PureC.
- Both are being currently considered. Note that the same problem will
- arise if you try to write drivers with PureC.
-
-
-